package com.giaothong.entities;

import java.util.Collection;

import com.giaothong.Main;

public class Question{
	
	private int id;
	private String title="";
	private String image="";
	private int isMulti = 1;
	private int isMark = 0;
	private int topic = 0;

	public Question() {
	}
	public Question(int id, String title, String image, int isMulti, int isMark, int topic) {
		super();
		this.id = id;
		this.title = title;
		this.image = image;
		this.isMulti = isMulti;
		this.isMark = isMark;
		this.topic = topic;
	}



	public int getId() {
		return id;
	}



	public void setId(int id) {
		this.id = id;
	}



	public String getTitle() {
		return title;
	}



	public void setTitle(String title) {
		this.title = title;
	}



	public String getImage() {
		return image;
	}



	public void setImage(String image) {
		this.image = image;
	}



	public int getIsMulti() {
		return isMulti;
	}



	public void setIsMulti(int isMulti) {
		this.isMulti = isMulti;
	}



	public int getTopic() {
		return topic;
	}
	public void setIsMark(int isMark){
		this.isMark = isMark;
	}
	
	public int getIsMark(){
		return isMark;
	}

	public void setTopic(int topic) {
		this.topic = topic;
	}



	public Collection<Choice> getChoices() {
		return Main.getChoiceDAL().getChoicesByQuestion(this.getId());
	}
}
